<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      var d = '';
      for (var a = 1; a <= 8; a++) {
        for (var b = 1; b <= a; b++) {
          d = d + '★';
        }
        d = d + '\n';
      }
      console.log(d);
    </script>
  </body>
</html>
